define [
  'lib/dao'
  'lib/dao_factory'
  ], (Dao, DaoFactory) ->

  'use strict'

  class AccessDao extends Dao

    login  : (username, password) -> @fetchRaw 'POST' , 'login', null, {username, password}
    logout :                      -> @fetchRaw 'POST' , 'logout'

  DaoFactory.register 'access_dao', AccessDao

  AccessDao